package com.gadgets.bm09.fegin;

import com.gadgets.framework.common.dto.HttpBaseResp;
import com.gadgets.framework.common.exception.GadgetsServiceException;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * 功能说明：
 *
 * @author Unclexiu
 * @version V202101.00.000
 * @data 2022-09-16
 * 修改记录：  修改日期          修改人员    修改说明
 * 2022-09-16  xiujunqing   创建文件
 */
@SuppressWarnings("rawtypes")
@FeignClient(value = "gadgets-config-framework", contextId = "emcyController")
public interface IEmcyController {

	@RequestMapping(method = {RequestMethod.POST},value = "/emcy/dataImport.do")
	HttpBaseResp importEmcyData(@RequestParam Map map) throws GadgetsServiceException;

	/**
	 * 新增数据分析任务
	 * @return								新增信息
	 * @throws GadgetsServiceException		服务异常
	 */
	@RequestMapping(value = "/emcy/analysis/addTask.do")
	HttpBaseResp addDatAnalysisTask(@RequestParam Map map) throws GadgetsServiceException;

}
